Skip to content

Fix: Voting premium removes the branding footer without unlocking a c… - #147

Merged
BenHall-1 merged 1 commit into
masterfrom
fix-premium-footer
Aug 31, 2026
Merged

Fix: Voting premium removes the branding footer without unlocking a c…#147
BenHall-1 merged 1 commit into
masterfrom
fix-premium-footer

Conversation

@biast12

@biast12 biast12 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Description

Pairs with the dashboard PR gating the embed footer behind Premium.

BuildCustomEmbed treated "not free" as "may use a custom footer", so a voting server got both no branding and its own footer. branding bool becomes FooterPolicy{ShowBranding, AllowCustom}:

  • no premium → branding footer
  • voting premium → no footer at all
  • paid premium → custom footer

FooterPolicyForContext resolves it from GetTierByGuildIdWithSource, checking for EntitlementSourceVoting. One extra Redis-cached read per welcome message, against the entry PremiumTier() already populated; a lookup error falls back to the paid case so an outage can't strip a paying server's footer.

Tag callers pass {AllowCustom: true} — tags are never branded and keep theirs.

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

…ustom one

`BuildCustomEmbed` treated "not free" as "may use a custom footer", so a voting server got both no branding *and* its own footer. `branding bool` becomes `FooterPolicy{ShowBranding, AllowCustom}`:

- no premium → branding footer
- voting premium → no footer at all
- paid premium → custom footer
@biast12
biast12 requested a review from a team as a code owner August 30, 2026 13:02
@github-actions github-actions Bot added the type:bug Bug Fixes label Aug 30, 2026
@BenHall-1
BenHall-1 merged commit b87d3a6 into master Aug 31, 2026
1 check passed
@BenHall-1
BenHall-1 deleted the fix-premium-footer branch August 31, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants